#include "tobjectinteractor.h"
#include <game/tobject.h>

void TObjectInteractor::interact(){
    stillInteract = false;
    TObject::interaction(*_one,*_two);
}

bool TObjectInteractor::IsStillInteracting(){
    return stillInteract;
}

void TObjectInteractor::setStillInteracting(){
    stillInteract = true;
}

bool TObjectInteractor::pointsTo(TObject *one, TObject *two) const{
    return _one == one && _two == two;
}

TObjectInteractor::TObjectInteractor(TObject *one, TObject *two){
    _one = one;
    _two = two;
    stillInteract = true;
}
